package com.zhanqiao.service;

import com.zhanqiao.Dao.DeleteDraftDao;
import com.zhanqiao.domain.ArticleBean;

import java.util.List;

public class DeleteDraftService implements  ArticleService {

    @Override
    public List<ArticleBean> articleService() {
        return null;
    }
    public int articleService(String deleteId) {
        DeleteDraftDao deleteDraftDao = new DeleteDraftDao();
        int articleId = Integer.parseInt(deleteId);
        int i = deleteDraftDao.deleteArticle(articleId);
        return i;
    }

}
